import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';

@Component({
  selector: 'app-task-header',
  templateUrl: './task-header.component.html',
  styleUrls: ['./task-header.component.scss']
})
export class TaskHeaderComponent implements OnInit {

  @Input() header = '';
  @Output() newTaskEvent = new EventEmitter<void>();
  @Output() moveTaskEvent = new EventEmitter<void>();
  @Output() deleteTaskList = new EventEmitter<void>();
  @Output() editTaskList = new EventEmitter<void>();

  constructor() {
  }

  ngOnInit() {
  }

  newTaskClick() {
    this.newTaskEvent.emit();
  }

  moveTaskClick() {
    this.moveTaskEvent.emit();
  }

  deleteClick() {
    this.deleteTaskList.emit();
  }

  editTaskListClick() {
    this.editTaskList.emit();
  }
}
